package com.suitsoft.bdms.entity.system;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.suitsoft.bdms.entity.IdEntity;


/**
 * 系统参数表	
 * 							
 * @author kxx
 *
 */
@Entity
@Table(name = "LW_SYSTEM_INFO")
public class SystemInfo extends IdEntity  {

	
	/** 类别中分项代码 */
	private String pmcd;
	
	/** 类别中分项名称 */
	private String pcnm;
	
	/** 类别中分项注释 */
	private String memo;

	
	private SystemCategory systemCategory;

	
	public SystemInfo() {
		super();
	}

	
	public SystemInfo(Long id) {
		super();
		this.id = id;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CATEGORY_ID")
	public SystemCategory getSystemCategory() {
		return systemCategory;
	}

	public void setSystemCategory(SystemCategory systemCategory) {
		this.systemCategory = systemCategory;
	}

	public String getPmcd() {
		return pmcd;
	}

	public void setPmcd(String pmcd) {
		this.pmcd = pmcd;
	}

	public String getPcnm() {
		return pcnm;
	}

	public void setPcnm(String pcnm) {
		this.pcnm = pcnm;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
